<?php
declare (strict_types = 1);

namespace app\admin\model;

/**
 * Class SystemGroup
 * @package app\admin\model
 */
class SystemGroup extends BaseModel
{
    //
    public static function getAccessGroupInfo(){
        return self::where('status','=',1)
            ->field("id,name,status")->select();
    }
    public static function getAllGroupInfo(){
        return self::field("id,name,status,authority,create_time")->select();
    }
    public static function getGroupByID($id){
        return self::field('id,name,status,authority')
            ->find($id);
    }
}
